// 定义一个函数
let add: (arg1: number, arg2: number) => number;
add = (num1: number, num2: number): number => {
    return 1;
}

// 接口定义函数
interface IFunc {
    (num1: number, num2: number): number
}

const sub: IFunc = (num1: number, num2: number): number => {
    return 1;
}

type Func = (num1: number) => number;
const func: Func = (number: number): number => 1
export {};